<?php

namespace App\Common;


use Illuminate\Http\Request;

class CommonFun{

    /**
     * Log the user out of the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return boolean
     */
    public static function logout(Request $request){
        Auth()->guard('admin')->logout();
        $request->session()->invalidate();
        return true;
    }

    public static function getSessionId(){
        return session()->getId();
    }

}
